package com.aaa.controller;

import com.aaa.entity.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2022/11/15 20:18
 * @Description
 */
@Controller
@ResponseBody
public class PersonController {
    @GetMapping("hello")
    public String hello() {
        return "hello World!";
    }

    @Autowired
    private Person person;

    @GetMapping("person")
    private Person getPerson() {
        return person;
    }
}
